﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace SmallGameArith {
    public class NotifyBase :INotifyPropertyChanged{
        #region INotifyPropertyChanged 成员

        public event PropertyChangedEventHandler PropertyChanged;

        #endregion
        public virtual void OnPropertyChanged(string pn) {
            if (PropertyChanged!=null) {
                this.PropertyChanged.Invoke(this,new PropertyChangedEventArgs(pn));
            }
        }
    }
}
